<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>xxx项目文档</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.min.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.8.2/lib/theme-chalk/index.css" />
    <script src="https://cdn.jsdelivr.net/npm/element-ui@2.8.2/lib/index.min.js"></script>
    <style>
        article {
            padding-left:2em;
        }
        .key {
            font-weight: bold;
            margin-right:0.5em;
        }
        h1 {
            font-size: 2em;
        }
        .part {
            border-bottom: dashed 1px #999;
        }
        pre {
            background: #ccc;
            padding-left:1em;            
        }
    </style>
</head>
<body>
    <div id="root"></div>
    <script type="text/template" id="zmr">
        <el-container>
            <el-header>
                <h1 style="color:#409EFF;margin:0;">xxx项目接口文档</h1>
            </el-header>
            <el-container>
                <el-aside>
                    <el-menu>
                        <el-submenu v-for="(doc, i) in list" :key="doc.filename" :index="i">
                            <template slot="title"><i class="el-icon-menu"></i>{{doc.title}}</template>
                            <el-menu-item-group>
                                <el-menu-item v-for="(chunk,j) in doc.docChunks" index="i+'-'+j">
                                    <el-link :href="'#'+chunk.name">{{chunk.name}}</el-link>
                                </el-menu-item>
                            </el-menu-item-group>
                        </el-submenu>
                    </el-menu>
                </el-aside>
                <el-container>
                    <el-main>
                        <article v-for="doc in list" :key="doc.filename">
                            <h2 :id="doc.title">{{doc.title}}</h2>
                            <section v-for="chunk in doc.docChunks" :key="chunk.name" class="part">
                                <h3 :id="chunk.name">{{chunk.name}}</h3>
                                <p>
                                    <span class="key">URL:</span>
                                    <span>{{chunk.url}}</span>
                                </p>
                                <p>
                                    <span class="key">Type:</span>
                                    <span>{{chunk.type}}</span>
                                </p>
                                <p>
                                    <span class="key">Content-Type:</span>
                                    <span>{{chunk.contentType}}</span>
                                </p>
                                <p class="key">Request-headers:</p>
                                <el-table :data="chunk.reqHeadersData">
                                    <el-table-column v-for="keyName in chunk.reqHeadersKeys" :key="keyName" :prop="keyName" :label="keyName" />
                                </el-table>
                                <p class="key">Request-parameters:</p>
                                <el-table :data="chunk.reqBodyData">
                                    <el-table-column v-for="keyName in chunk.reqBodyKeys" :key="keyName" :prop="keyName" :label="keyName" />
                                </el-table>
                                <p class="key">请求示例:</p>
                                <pre>{{chunk.reqExample}}</pre>
                                <p class="key">响应数据::</p>
                                <el-table :data="chunk.resBodyData">
                                    <el-table-column v-for="keyName in chunk.resBodyKeys" :key="keyName" :prop="keyName" :label="keyName" />
                                </el-table>
                                <p class="key">返回示例:</p>
                                <pre>{{chunk.resExample}}</pre>
                            </section>
                        </articele>
                    </el-main>
                    <el-footer style="text-align:center;">powered by zmr</el-footer>
                </el-container>
            </el-container>
        </el-container>
    </script>
    <script>
        var dependence = [{"filename":"sysconfig.md","filePath":"C:\\Users\\Administrator\\Desktop\\zmr-mdV1.1.0\\zmr-md\\md-files\\sysconfig.md","title":"参数配置","docChunks":[{"name":"参数配置查询列表","url":"http://{server}/sys/config/list","type":"POST","contentType":"application/json","reqExample":"\r\n{\r\n\t\"configId\":Integer,\r\n\t\"configName\":String,\r\n\t\"configKey\":String,\r\n\t\"configValue\":String,\r\n\t\"configType\":String,\r\n\t\"createBy\":String,\r\n\t\"createTime\":Date,\r\n\t\"updateBy\":String,\r\n\t\"updateTime\":Date,\r\n\t\"remark\":String\r\n}\r\n\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\",\r\n\t\"rows\":{}\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"configId","参数":"Integer","描述":"参数主键","是否必须":"否"},{"参数名":"configName","参数":"String","描述":"参数名称","是否必须":"否"},{"参数名":"configKey","参数":"String","描述":"参数键名","是否必须":"否"},{"参数名":"configValue","参数":"String","描述":"参数键值","是否必须":"否"},{"参数名":"configType","参数":"String","描述":"系统内置（Y是 N否）","是否必须":"否"},{"参数名":"createBy","参数":"String","描述":"创建者","是否必须":"否"},{"参数名":"createTime","参数":"Date","描述":"创建时间","是否必须":"否"},{"参数名":"updateBy","参数":"String","描述":"更新者","是否必须":"否"},{"参数名":"updateTime","参数":"Date","描述":"更新时间","是否必须":"否"},{"参数名":"remark","参数":"String","描述":"备注","是否必须":"否"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"},{"字段":"rows","类型":"array","描述":"集合"},{"字段":"total","类型":"number","描述":"记录总数"}]},{"name":"参数配置根据编号查询","url":"http://{server}/sys/config/get/{configId}","type":"GET","contentType":"<本项缺失>","reqExample":"\r\nhttp://{server}/sys/config/get/123\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\",\r\n\t\"data\":{\r\n\t\t\"configId\":Integer,\r\n\t\t\"configName\":String,\r\n\t\t\"configKey\":String,\r\n\t\t\"configValue\":String,\r\n\t\t\"configType\":String,\r\n\t\t\"createBy\":String,\r\n\t\t\"createTime\":Date,\r\n\t\t\"updateBy\":String,\r\n\t\t\"updateTime\":Date,\r\n\t\t\"remark\":String\r\n\t}\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"configId","参数":"Integer","描述":"主键","是否必须":"是"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"},{"字段":"data","类型":"object","描述":"对象"}]},{"name":"参数配置新增","url":"http://{server}/sys/config/add","type":"POST","contentType":"application/json","reqExample":"\r\n{\r\n\t\"configId\":Integer,\r\n\t\"configName\":String,\r\n\t\"configKey\":String,\r\n\t\"configValue\":String,\r\n\t\"configType\":String,\r\n\t\"createBy\":String,\r\n\t\"createTime\":Date,\r\n\t\"updateBy\":String,\r\n\t\"updateTime\":Date,\r\n\t\"remark\":String\r\n}\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\"\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"configId","参数":"Integer","描述":"参数主键","是否必须":"否"},{"参数名":"configName","参数":"String","描述":"参数名称","是否必须":"否"},{"参数名":"configKey","参数":"String","描述":"参数键名","是否必须":"否"},{"参数名":"configValue","参数":"String","描述":"参数键值","是否必须":"否"},{"参数名":"configType","参数":"String","描述":"系统内置（Y是 N否）","是否必须":"否"},{"参数名":"createBy","参数":"String","描述":"创建者","是否必须":"否"},{"参数名":"createTime","参数":"Date","描述":"创建时间","是否必须":"否"},{"参数名":"updateBy","参数":"String","描述":"更新者","是否必须":"否"},{"参数名":"updateTime","参数":"Date","描述":"更新时间","是否必须":"否"},{"参数名":"remark","参数":"String","描述":"备注","是否必须":"否"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"}]},{"name":"参数配置更新","url":"http://{server}/sys/config/edit","type":"POST","contentType":"application/json","reqExample":"\r\n{\r\n\t\"configId\":Integer,\r\n\t\"configName\":String,\r\n\t\"configKey\":String,\r\n\t\"configValue\":String,\r\n\t\"configType\":String,\r\n\t\"createBy\":String,\r\n\t\"createTime\":Date,\r\n\t\"updateBy\":String,\r\n\t\"updateTime\":Date,\r\n\t\"remark\":String\r\n}\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\"\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"configId","参数":"Integer","描述":"参数主键","是否必须":"否"},{"参数名":"configName","参数":"String","描述":"参数名称","是否必须":"否"},{"参数名":"configKey","参数":"String","描述":"参数键名","是否必须":"否"},{"参数名":"configValue","参数":"String","描述":"参数键值","是否必须":"否"},{"参数名":"configType","参数":"String","描述":"系统内置（Y是 N否）","是否必须":"否"},{"参数名":"createBy","参数":"String","描述":"创建者","是否必须":"否"},{"参数名":"createTime","参数":"Date","描述":"创建时间","是否必须":"否"},{"参数名":"updateBy","参数":"String","描述":"更新者","是否必须":"否"},{"参数名":"updateTime","参数":"Date","描述":"更新时间","是否必须":"否"},{"参数名":"remark","参数":"String","描述":"备注","是否必须":"否"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"}]},{"name":"参数配置删除","url":"http://{server}/sys/config/remove","type":"POST","contentType":"application/x-www-form-urlencoded","reqExample":"\r\nurl: 'http://{server}/sys/config/remove',\r\nmethod: 'post',\r\nparams: '1,2,3'\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\"\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"ids","参数":"string","描述":"id字符串如\"1,2,3\"","是否必须":"是"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"}]}]},{"filename":"sysnotice.md","filePath":"C:\\Users\\Administrator\\Desktop\\zmr-mdV1.1.0\\zmr-md\\md-files\\sysnotice.md","title":"通知公告","docChunks":[{"name":"通知公告查询列表","url":"http://{server}/sys/notice/list","type":"POST","contentType":"application/json","reqExample":"\r\n{\r\n\t\"noticeId\":Integer,\r\n\t\"noticeTitle\":String,\r\n\t\"noticeType\":String,\r\n\t\"noticeContent\":String,\r\n\t\"status\":String,\r\n\t\"createBy\":String,\r\n\t\"createTime\":Date,\r\n\t\"updateBy\":String,\r\n\t\"updateTime\":Date,\r\n\t\"remark\":String\r\n}\r\n\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\",\r\n\t\"rows\":{}\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"noticeId","参数":"Integer","描述":"公告ID","是否必须":"否"},{"参数名":"noticeTitle","参数":"String","描述":"公告标题","是否必须":"否"},{"参数名":"noticeType","参数":"String","描述":"公告类型（1通知 2公告）","是否必须":"否"},{"参数名":"noticeContent","参数":"String","描述":"公告内容","是否必须":"否"},{"参数名":"status","参数":"String","描述":"公告状态（0正常 1关闭）","是否必须":"否"},{"参数名":"createBy","参数":"String","描述":"创建者","是否必须":"否"},{"参数名":"createTime","参数":"Date","描述":"创建时间","是否必须":"否"},{"参数名":"updateBy","参数":"String","描述":"更新者","是否必须":"否"},{"参数名":"updateTime","参数":"Date","描述":"更新时间","是否必须":"否"},{"参数名":"remark","参数":"String","描述":"备注","是否必须":"否"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"},{"字段":"rows","类型":"array","描述":"集合"},{"字段":"total","类型":"number","描述":"记录总数"}]},{"name":"通知公告根据编号查询","url":"http://{server}/sys/notice/get/{noticeId}","type":"GET","contentType":"<本项缺失>","reqExample":"\r\nhttp://{server}/sys/notice/get/123\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\",\r\n\t\"data\":{\r\n\t\t\"noticeId\":Integer,\r\n\t\t\"noticeTitle\":String,\r\n\t\t\"noticeType\":String,\r\n\t\t\"noticeContent\":String,\r\n\t\t\"status\":String,\r\n\t\t\"createBy\":String,\r\n\t\t\"createTime\":Date,\r\n\t\t\"updateBy\":String,\r\n\t\t\"updateTime\":Date,\r\n\t\t\"remark\":String\r\n\t}\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"noticeId","参数":"Integer","描述":"主键","是否必须":"是"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"},{"字段":"data","类型":"object","描述":"对象"}]},{"name":"通知公告新增","url":"http://{server}/sys/notice/add","type":"POST","contentType":"application/json","reqExample":"\r\n{\r\n\t\"noticeId\":Integer,\r\n\t\"noticeTitle\":String,\r\n\t\"noticeType\":String,\r\n\t\"noticeContent\":String,\r\n\t\"status\":String,\r\n\t\"createBy\":String,\r\n\t\"createTime\":Date,\r\n\t\"updateBy\":String,\r\n\t\"updateTime\":Date,\r\n\t\"remark\":String\r\n}\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\"\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"noticeId","参数":"Integer","描述":"公告ID","是否必须":"否"},{"参数名":"noticeTitle","参数":"String","描述":"公告标题","是否必须":"否"},{"参数名":"noticeType","参数":"String","描述":"公告类型（1通知 2公告）","是否必须":"否"},{"参数名":"noticeContent","参数":"String","描述":"公告内容","是否必须":"否"},{"参数名":"status","参数":"String","描述":"公告状态（0正常 1关闭）","是否必须":"否"},{"参数名":"createBy","参数":"String","描述":"创建者","是否必须":"否"},{"参数名":"createTime","参数":"Date","描述":"创建时间","是否必须":"否"},{"参数名":"updateBy","参数":"String","描述":"更新者","是否必须":"否"},{"参数名":"updateTime","参数":"Date","描述":"更新时间","是否必须":"否"},{"参数名":"remark","参数":"String","描述":"备注","是否必须":"否"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"}]},{"name":"通知公告更新","url":"http://{server}/sys/notice/edit","type":"POST","contentType":"application/json","reqExample":"\r\n{\r\n\t\"noticeId\":Integer,\r\n\t\"noticeTitle\":String,\r\n\t\"noticeType\":String,\r\n\t\"noticeContent\":String,\r\n\t\"status\":String,\r\n\t\"createBy\":String,\r\n\t\"createTime\":Date,\r\n\t\"updateBy\":String,\r\n\t\"updateTime\":Date,\r\n\t\"remark\":String\r\n}\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\"\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"noticeId","参数":"Integer","描述":"公告ID","是否必须":"否"},{"参数名":"noticeTitle","参数":"String","描述":"公告标题","是否必须":"否"},{"参数名":"noticeType","参数":"String","描述":"公告类型（1通知 2公告）","是否必须":"否"},{"参数名":"noticeContent","参数":"String","描述":"公告内容","是否必须":"否"},{"参数名":"status","参数":"String","描述":"公告状态（0正常 1关闭）","是否必须":"否"},{"参数名":"createBy","参数":"String","描述":"创建者","是否必须":"否"},{"参数名":"createTime","参数":"Date","描述":"创建时间","是否必须":"否"},{"参数名":"updateBy","参数":"String","描述":"更新者","是否必须":"否"},{"参数名":"updateTime","参数":"Date","描述":"更新时间","是否必须":"否"},{"参数名":"remark","参数":"String","描述":"备注","是否必须":"否"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"}]},{"name":"通知公告删除","url":"http://{server}/sys/notice/remove","type":"POST","contentType":"application/x-www-form-urlencoded","reqExample":"\r\nurl: 'http://{server}/sys/notice/remove',\r\nmethod: 'post',\r\nparams: '1,2,3'\r\n","resExample":"\r\n{\r\n\t\"code\":0,\r\n\t\"msg\":\"success\"\r\n}\r\n","reqHeadersKeys":["Name","Type","Description"],"reqHeadersData":[{"Name":"token","Type":"string","Description":"授权令牌"}],"reqBodyKeys":["参数名","参数","描述","是否必须"],"reqBodyData":[{"参数名":"ids","参数":"string","描述":"id字符串如\"1,2,3\"","是否必须":"是"}],"resBodyKeys":["字段","类型","描述"],"resBodyData":[{"字段":"code","类型":"int","描述":"返回编码，'0'表示成功"},{"字段":"msg","类型":"string","描述":"消息内容"}]}]}];

        Vue.use(ELEMENT);
        new Vue({
            el:"#root",
            template:"#zmr",
            data:function(){
                return {
                    list: dependence
                }
            }
        });
    </script>
</body>
</html>